package com.example.demo.dao;

import com.example.demo.model.UsersEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UsersDao extends JpaRepository<UsersEntity, Integer> {
    UsersEntity findByUsername(String username);
}
